from django.conf.urls.defaults import *
from views import *

urlpatterns = patterns('',
    (r'^$', index, {"template":"newspaper/index.html"}),
    (r'^page/(?P<key>.+)', page, {"template":"newspaper/page.html"}),
    (r'^admin/list/', admin_list, {"template":"newspaper/admin_list.html"}),
    (r'^admin/save/(?P<key>.*)', admin_save, {"template":"newspaper/admin_save.html"}),
    (r'^admin/delete/(?P<key>.+)', admin_delete),
    (r'^admin/comment_list/(?P<key>.+)', admin_comment_list, {"template":"newspaper/admin_comment_list.html"}),
    (r'^admin/comment_save/(?P<key>.*)', admin_comment_save, {"template":"newspaper/admin_comment_save.html"}),
    (r'^admin/comment_delete/(?P<key>.+)', admin_comment_delete),
    (r'^add/(?P<parent>.*)', add, {"template":"newspaper/add.html"}),
)